package ch.bfh.java.directorysynchronizer.presentation.Frame;

import java.awt.GridLayout;

import javax.swing.JPanel;

import ch.bfh.java.directorysynchronizer.presentation.items.Workbench;

public class SubPanel extends JPanel{

	/**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    private Workbench workbench;
    
    public SubPanel(Workbench wb){
    	
    	this.workbench = wb;
    	    	
    	this.setPreferredSize(workbench.getSubPanelDimension());
    	
    	this.setLayout(new GridLayout(1,2));
    	
    	this.workbench.getSubtext().setText("   prog2; Serie1; Gruppe7; Matthias Winzeler, Christian Mueller");
    	
    	this.add(workbench.getSubtext());
	
    }
	
	

}
